<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>

<style type="text/css">
<!--
.style1 {
	color: #0000FF;
	font-weight: bold;
	font-size: 20px;
}
-->
</style>
<script type="text/javascript" src="../tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript"> 
	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
		skin : "o2k7",
		plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,autosave",
 
		// Theme options
		theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
 
		// Example word content CSS (should be your site CSS) this one removes paragraph margins
		content_css : "css/word.css",
 
		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",
 
		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		}
	});
</script>
<script language="javascript">
function hamkttk()
{	
	
	$.post('laydl.php',{name:form1.taikhoan.value} ,
										function(layve)
										{
											$("#kt_taikhoan").html(layve);
										}
	)
	$("#kt_taikhoan").ajaxSend(function(evt, request, settings){ 
        $(this).html('<img src="hinh/index.gif" width="18" height="19"/>'); 
      });

}
function hammk()
{
	if(form1.mk1.value==form1.mk2.value)
	{
		$("#mk").html('M&#7841;t kh&#7843;u h&#7907;p l&#7879;'); 
	}
	else
	{
		$("#mk").html('M&#7841;t kh&#7843;u ch&#432;a h&#7907;p l&#7879;');
	}

}
function xuly()
{
$.post('xulydangky.php',{
tk:form1.taikhoan.value
,mk:form1.mk1.value
,ht:form1.hoten.value
,gt:form1.gioitinh.value
,dt:form1.dienthoai.value
,ns:form1.ngaysinh.value
,email:form1.email.value
,hinh:form1.hinh.value
,mt:form1.mota.value
} ,
										function(layve)
										{
											$("#form").html(layve);
										}
)
}
</script>
</head>
<?php
require("conn.php");
$sql="SELECT * FROM sanpham where ma=''";
$bang=mysql_query($sql);
?>
<body>
<br/>
<form action="xulycapnhatsanpham.php" method="post" enctype="multipart/form-data" name="f" id="f">
  <table width="907" border="0" cellpadding="2" cellspacing="2" style="border-style:outset;border-color:#9DD0CA;border-width:+8;border-bottom:none">
    <tr>
      <td colspan="2"><div align="left"><span class="style1">Form cap nhat s&#7843;n ph&#7849;m</span></div></td>
    </tr>
    <tr>
      <td width="132"><div align="left">T&#234;n s&#7843;n ph&#7849;m</div></td>
      <td width="761"><label>
        <div align="left">
          <input name="ten" type="text" id="ten" size="50" />
        </div>
      </label></td>
    </tr>
    <tr>
      <td><div align="left">Nh&#243;m s&#7843;n ph&#7849;m</div></td>
      <td><label>
        <div align="left">
          <select name="chude">
            <option value="0">None</option>
            <?php
  while($row=mysql_fetch_array($bang))
  {
  ?>
            <option value="<?php echo($row["ma"]);?>"><?php echo($row["ten"]);?></option>
            <?php
		  }
		  ?>
          </select>
        </div>
      </label></td>
    </tr>
    <tr>
      <td><div align="left">&#272;&#417;n gi&#225;</div></td>
      <td><div align="left">
        <input name="dongia" type="text" id="dongia" />
      </div></td>
    </tr>
    <tr>
      <td><div align="left">S&#7889; l&#432;&#7907;ng</div></td>
      <td><div align="left">
        <input name="soluong" type="text" id="soluong" />
      </div></td>
    </tr>
    <tr>
      <td><div align="left">H&#236;nh s&#7843;n ph&#7849;m</div></td>
      <td><label>
        <div align="left">
          <input name="hinh" type="file" id="hinh" size="70" />
        </div>
      </label></td>
    </tr>
    <tr>
      <td><div align="left">M&#244; t&#7843; s&#7843;n ph&#7849;m</div></td>
      <td><label>
        <div align="left">
          <textarea name="mota" cols="90" rows="7" id="mota" ></textarea>
        </div>
      </label></td>
    </tr>
	 <tr>
      <td><div align="left">M&#244; t&#7843; chi ti&#7871;t </div></td>
      <td><label>
        <div align="left">
          <textarea name="motact" cols="90" rows="10" id="motact"></textarea>
        </div>
      </label></td>
    </tr>
    <tr>
      <td><div align="left">Li&#234;n h&#7879; </div></td>
      <td><label>
        <div align="left">
          <textarea name="lienhe" cols="90" rows="7" id="lienhe"></textarea>
        </div>
      </label></td>
    </tr>
    <tr>
      <td colspan="2"><label>
        <div align="center">
          <input type="submit" name="Submit" value="Save" />
          <input name="Huy" type="reset" id="Huy" value="Reset" />
        </div>
      </label></td>
    </tr>
  </table>
</form>
</body>
</html>
